package com.ming.multifunction.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ming.multifunction.model.domain.Post;
import com.ming.multifunction.model.domain.User;
import com.ming.multifunction.model.dto.PostQuery;
import com.ming.multifunction.model.vo.PostUserVO;

import java.util.List;


/**
* @author LiSuiMing
* @description 针对表【post(帖子)】的数据库操作Service
* @createDate 2024-03-11 17:06:00
*/
public interface PostService extends IService<Post> {

    List<PostUserVO> listPost(PostQuery postQuery, boolean isAdmin);

    PostUserVO getPost(Long id);

    long publishPost(Post post, User loginUser);

    List<PostUserVO> searchPost(String searchText);
}
